# Contributor: Leo <thinkabit.ukim@gmail.com>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=quaternion
pkgver=0.0.95.1
pkgrel=0
pkgdesc="Qt5-based IM client for Matrix"
options="!check" # No testsuite
url="https://github.com/QMatrixClient/Quaternion"
arch="all !armhf" # armhf blocked by qt5-qtmultimedia
license="GPL-3.0-or-later"
depends="qt5-qtquickcontrols"
makedepends="
	cmake
	libquotient-dev
	libsecret-dev
	qt5-qtkeychain-dev
	qt5-qtmultimedia-dev
	qt5-qtquickcontrols2-dev
	qt5-qttools-dev
	"
source="https://github.com/QMatrixClient/Quaternion/archive/${pkgver/_/-}/Quaternion-${pkgver/_/-}.tar.gz"
builddir="$srcdir/Quaternion-${pkgver/_/-}"

build() {
	cmake -B build \
		-DCMAKE_BUILD_TYPE=None \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DCMAKE_INSTALL_LIBDIR=lib
	cmake --build build
}

package() {
	DESTDIR="$pkgdir" cmake --install build
}

sha512sums="
465e49b90fef88b252f26b5791c2d491bfa451dd3b876b1fce8732bf96276437343fd368d1d48d20a2b5ec993a3e0a36709232f60fadd176548a7b942b22b678  Quaternion-0.0.95.1.tar.gz
"
